package com.streamkar.entity.base;

import com.alibaba.fastjson.JSON;

import javax.validation.constraints.NotBlank;

public class IdRequest extends Request {

    private static final long serialVersionUID = -404071043021358806L;

    @NotBlank
    private String id;

    private Integer recVer;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getRecVer() {
        return recVer;
    }

    public void setRecVer(Integer recVer) {
        this.recVer = recVer;
    }

    @Override
    public String toString() {
        return JSON.toJSONStringWithDateFormat(this, "yyyy-MM-dd HH:mm:ss");
    }
}
